package com.tedu.bill.demo6;

/**
 * Author：毕龙
 * Date: 2024/4/26 20:06
 */
public class OuterClass2 {
    private int a = 123;

    private static int b = 234;

    //静态内部类
    static class InnerClass{

        public void m1(){
            //Non-static field 'a' cannot be referenced from a static context
            //System.out.println(a);
            System.out.println(b);
        }

        public static void m2(){
            //m1();
            System.out.println(b);
        }
    }
}
